package com.liu.webManagent;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringCloudApplication
@EnableDiscoveryClient
@EnableHystrix
@EnableFeignClients
@RibbonClients
@EnableAutoConfiguration
@ComponentScan(basePackages = {"com.liu"})
@MapperScan("com.liu.service.dao")   //切记修改，扩大范围会将其他的bean重复扫面，导致系统异常或者cotroller无法注入
public class WebManagementApplication {

	public static void main(String[] args) {
		SpringApplication.run(WebManagementApplication.class, args);
	}

}


